package pe.com.csi.pm.regexiv;

import android.app.Activity;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.view.Window;
import android.view.WindowManager;
import android.widget.EditText;

public class TabSVertical extends Activity {

	private EditText txtDescripcion;

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		requestWindowFeature(Window.FEATURE_NO_TITLE);
		getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
		setContentView(R.layout.tab_svertical);

		txtDescripcion = (EditText) findViewById(R.id.txtDescripcion);

	}

	@Override
	protected void onPause() {
		// TODO Auto-generated method stub
		super.onPause();

		SharedPreferences sp = getSharedPreferences("ELEMENTO_VIAL", MODE_PRIVATE);

		sp.edit().putString("VALOR1", txtDescripcion.getText().toString()).commit();

	}

}